package com.zsrt.java.day20161226.hzj.lasthomework;

import java.util.Scanner;

public class Call {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		System.out.println("请输入1(爸爸)或2(妈妈)或3(爷爷)或4(奶奶)");
		int s = sc.nextInt();
		sc.close();
		hw8(s);
		
	}
    public static void hw8(int  s){
    
		switch(s){
		
		case 1: System.out.println("与爸爸通话中");break;
		case 2: System.out.println("与妈妈通话中");break;
		case 3: System.out.println("与爷爷通话中");break;
		case 4: System.out.println("与奶奶通话中");break;
		default: System.out.println("号码不对");break;
		}
    }
}
